package com.xht.main;

public class Car {

	private String name;
	private String area;
	private double price;
	private int speed;

	/**
	 * @return
	 */
	public String getName() {
		return name;
	}

	public Car(String name, String area, double price, int speed) {
		super();
		this.name = name;
		this.area = area;
		this.price = price;
		this.speed = speed;
	}

	public Car() {
		super();
	}

	public Car(String name, String area, double price) {
		super();
		this.name = name;
		this.area = area;
		this.price = price;
	}

	@Override
	public String toString() {
		return "Car [name=" + name + ", area=" + area + ", price=" + price
				+ ", speed=" + speed + "]";
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public int getSpeed() {
		return speed;
	}

	public void setSpeed(int speed) {
		this.speed = speed;
	}
}
